import {createWebHashHistory, createRouter} from 'vue-router'

import Layout from '../page/layout/index.vue'
import Home from '../page/home/index.vue'
import LineQuickStart from '../page/line/quick_start.vue'
import LineQuickStart2 from '../page/line/quick_start2.vue'
import LineQuickStart3 from '../page/line/quick_start3.vue'
import Basic from '../page/line/basic.vue'
import Basic2 from '../page/line/basic2.vue'

const routes = [
    {
        path: '/',
        component: Layout,
        redirect: '/home',
        children: [
            {path: "/home", component: Home},
            {path: "/line/quickstart", component: LineQuickStart},
            {path: "/line/quickstart2", component: LineQuickStart2},
            {path: "/line/quickstart3", component: LineQuickStart3},
            {path: "/line/basic", component: Basic},
            {path: "/line/basic2", component: Basic2},
        ]
    },
]

const router = createRouter({
    history: createWebHashHistory(),
    routes,
})

export default router